﻿using System.Collections.Generic;
using Microsoft.Practices.EnterpriseLibrary.Validation.Configuration;
using System;

namespace AsNum.Common.EntLib.Validation.Adapters {
    /// <summary>
    /// 
    /// </summary>
    public class NotNullClientAdapter : BaseClientAdapter<NotNullValidatorData> {

        public NotNullClientAdapter(NotNullValidatorData data , Dictionary<string , Tuple<string , string>> map , bool isSub = false)
            : base ( data , map , isSub ) {
            //this.AddRule(RuleKeys.Required, (!this.ValidatorData.Negated).JsBool());
        }


        public override RuleTypes RuleType {
            get {
                return RuleTypes.NotNull;
            }
        }
    }
}
